package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 资金操作
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="积分操作", description="积分操作")
public class UserOperateAllIntegralRequest implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "uid")
    @NotNull
    @Min(value = 1, message = "请输入正确的uid")
    private Integer uid;

    @ApiModelProperty(value = "增值积分类型， 0 = 增加， 1 = 减少")
    @NotNull
    @Range(min = 0, max = 1, message = "请选择正确的类型， 【0 = 增加， 1 = 减少】")
    private Integer valueAddType;

    @ApiModelProperty(value = "绿色积分类型， 【0 = 增加， 1 = 减少】")
    @NotNull
    @Range(min = 0, max = 1, message = "请选择正确的类型， 【0 = 增加， 1 = 减少】")
    private Integer greenType;

    @ApiModelProperty(value = "贡献值类型， 【0 = 增加， 1 = 减少】")
    @NotNull
    @Range(min = 0, max = 1, message = "请选择正确的类型， 【0 = 增加， 1 = 减少】")
    private Integer contributionType;

    @ApiModelProperty(value = "余额类型，【0 = 增加， 1 = 减少】")
    @NotNull
    @Range(min = 0, max = 1, message = "请选择正确的类型， 【0 = 增加， 1 = 减少】")
    private Integer balanceType;

    @ApiModelProperty(value = "cb基金类型， 【0 = 增加， 1 = 减少】")
    @NotNull
    @Range(min = 0, max = 1, message = "请选择正确的类型， 【0 = 增加， 1 = 减少】")
    private Integer cbfundsType;

//    @ApiModelProperty(value = "积分")
//    @DecimalMin(value = "0.00")
//    @DecimalMax(value = "999999.99")
//    private BigDecimal integralValue;

    @ApiModelProperty(value = "增值积分")
    @DecimalMin(value = "0.00")
    @DecimalMax(value = "999999.99")
    private BigDecimal valueAddValue;

    @ApiModelProperty(value = "绿色积分")
    @DecimalMin(value = "0.00")
    @DecimalMax(value = "999999.99")
    private BigDecimal greenValue;

    @ApiModelProperty(value = "贡献值")
    @DecimalMin(value = "0.00")
    @DecimalMax(value = "999999.99")
    private BigDecimal contributionValue;

    @ApiModelProperty(value = "余额")
    @DecimalMin(value = "0.00")
    @DecimalMax(value = "999999.99")
    private BigDecimal balanceValue;

    @ApiModelProperty(value = "cb基金")
    @DecimalMin(value = "0.00")
    @DecimalMax(value = "999999.99")
    private BigDecimal cbfundsValue;


}
